<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .fu {
            background-color: #ff0;
            /*子元素都浮动走,父元素会失高
            可以给父元素设置BFC结界,此时父元素会根据子元素浮动后的实际高度自动填充高度*/
            overflow: hidden;
        }
        .fu>.dv1 {
            width: 200px;
            height: 100px;
            background-color: #0aa1ed;
            float: left;
        }

    </style>
</head>
<body>
<div class="fu">
<img src="img/1.jpg" class="dv1">
<img src="img/1.jpg" class="dv1">
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
dddddddddddddddddd
CCCCCCCCCCCCCCCCCC
EEEEEEEEEEEEEEEEEE
</div>
</body>
</html>